package com.sfh.gd.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sfh.gd.domain.entity.MemberDO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
public class GameRegistrationVO {

    private Long registrationDId;
    /**
     * 赛事ID
     */
    private Long gameId;
    /**
     * 会员ID
     */
    private Long userId;

    /**
     * 队伍ID-单人报名为空
     */
    private Long teamId;

    /**
     * 状态 0 已报名 1 已签到 2 已取消 3 禁赛
     */
    private Integer status;
    /**
     * 签到时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime checkinTime;

    /**
     * 创建时间-报名时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    //会员
    private MemberDO member;
}
